/**
 * @file cfgym/103389/a/main.cpp
 * @brief
 * @see
 * @author Ruiming Guo (guoruiming@stu.scu.edu.cn)
 * @copyright 2022
 * @date 2022/5/15 13:11:29
 **/

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
string buf;
int main() {
  // High rating and good luck!
  int n;
  cin >> n;
  cin.ignore();
  ll ans = 0;
  while (n--) {
    getline(cin, buf);
    for (int i = 1; i <= 4; ++i)
      if (buf[i] == '-') ans++;
  }
  cout << ans << endl;
  return 0;
}
